import request from '/@/utils/request';
export const pageList=(params?:Object)=>{
    return request({
        url:'/aigc/doc/page',
        method:'get',
        params
    });
};


export const getObj = (id: Object) => {
	return request({
		url: '/aigc/doc/' + id,
		method: 'get',
	});
};

export function getDetails(obj: Object) {
	return request({
		url: '/aigc/doc/details',
		method: 'get',
		params: obj,
	});
}
export const addObj = (obj: Object) => {
	return request({
		url: '/aigc/doc/add',
		method: 'post',
		data: obj,
	});
};

export const putObj = (obj: Object) => {
	return request({
		url: '/aigc/doc/update',
		method: 'put',
		data: obj,
	});
};
export const delObj = (ids: Object) => {
	return request({
		url: '/aigc/doc/delete',
		method: 'delete',
		data: ids,
	});
};
